﻿@model IEnumerable<HopNguyenCore.TypeProduct>
@{
    ViewBag.Title = "Loại sản phẩm";
    Layout = "~/Views/Share/_BackendLayout.cshtml";
}

<div class="row-fluid">
    <div style="padding-bottom: 15px">
        <a href="/cpanel/createtypeproduct" class="button sButton bOlive">Tạo mới</a>
    </div>
    <div class="widget">
        <div class="wTitle">
            <h3>Loại sản phẩm</h3>
        </div>

        <div class="wContent" align="center">
            <table cellpading="0" cellspacing="0" border="0" class="dTable">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Tên</th>
                        <th>Trạng thái</th>
                        <th>Sắp xếp</th>
                        <th>Nhóm cha</th>
                        <th>Ngày tạo</th>
                        <th>Xóa</th>
                    </tr>
                </thead>
                <tbody align="center">
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>@item.Id</td>
                            <td><a href="/cpanel/EditTypeProduct/@item.Id">@item.Name</a></td>
                            <td>@item.Status</td>
                            <td>@item.Sort</td>
                            <td>@item.TypeProduct2.Name</td>
                            <td>@item.DateCreate</td>
                            <td><a href="/cpanel/deletetypeproduct/@item.Id" class="ctrlButton"><img src="/backend/img/icons/14x14/trash.png" alt=""></a></td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
